package com.amita.ez.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 代码生成字段信息存储
 * </p>
 *
 * @author auto-maker
 * @since 2021-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("code_column_config")
public class CodeColumnConfig extends Model<CodeColumnConfig> {

    private static final long serialVersionUID=1L;

    /**
     * ID
     */
    @TableId(value = "oid", type = IdType.AUTO)
    private Long oid;

    private String tableName;

    private String columnName;

    private String columnType;

    private String dictName;

    private String extra;

    private Boolean formShow;

    private String formType;

    private String keyType;

    private Boolean listShow;

    private Boolean notNull;

    private String queryType;

    private String remark;

    private String dateAnnotation;


    @Override
    protected Serializable pkVal() {
        return this.oid;
    }

}
